package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.JyjcSharingExpensesSum;
import com.ruoyi.system.mapper.JyjcSharingExpensesSumMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.JyjcExpensesLsMapper;
import com.ruoyi.system.domain.JyjcExpensesLs;
import com.ruoyi.system.service.IJyjcExpensesLsService;

/**
 * 财务收入支出统计Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-13
 */
@Service
public class JyjcExpensesLsServiceImpl implements IJyjcExpensesLsService 
{
    @Autowired
    private JyjcExpensesLsMapper jyjcExpensesLsMapper;
    @Autowired
    private JyjcSharingExpensesSumMapper jyjcSharingExpensesSumMapper;
    /**
     * 查询财务收入支出统计
     * 
     * @param year 财务收入支出统计主键
     * @return 财务收入支出统计
     */
    @Override
    public JyjcExpensesLs selectJyjcExpensesLsByYear(String year)
    {

        return jyjcExpensesLsMapper.selectJyjcExpensesLsByYear(year);
    }

    /**
     * 查询财务收入支出统计列表
     * 
     * @param jyjcExpensesLs 财务收入支出统计
     * @return 财务收入支出统计
     */
    @Override
    public List<JyjcExpensesLs> selectJyjcExpensesLsList(JyjcExpensesLs jyjcExpensesLs)
    {

        return jyjcExpensesLsMapper.selectJyjcExpensesLsList(jyjcExpensesLs);
    }

    /**
     * 新增财务收入支出统计
     * 
     * @param jyjcExpensesLs 财务收入支出统计
     * @return 结果
     */
    @Override
    public int insertJyjcExpensesLs(JyjcExpensesLs jyjcExpensesLs)
    {
        return jyjcExpensesLsMapper.insertJyjcExpensesLs(jyjcExpensesLs);
    }

    /**
     * 修改财务收入支出统计
     * 
     * @param jyjcExpensesLs 财务收入支出统计
     * @return 结果
     */
    @Override
    public int updateJyjcExpensesLs(JyjcExpensesLs jyjcExpensesLs)
    {
        return jyjcExpensesLsMapper.updateJyjcExpensesLs(jyjcExpensesLs);
    }

    /**
     * 批量删除财务收入支出统计
     * 
     * @param years 需要删除的财务收入支出统计主键
     * @return 结果
     */
    @Override
    public int deleteJyjcExpensesLsByYears(String[] years)
    {
        return jyjcExpensesLsMapper.deleteJyjcExpensesLsByYears(years);
    }

    /**
     * 删除财务收入支出统计信息
     * 
     * @param year 财务收入支出统计主键
     * @return 结果
     */
    @Override
    public int deleteJyjcExpensesLsByYear(String year)
    {
        return jyjcExpensesLsMapper.deleteJyjcExpensesLsByYear(year);
    }
}
